package com.gscitysfy.cus.drain.modules.command.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Administrator
 * @since 2022-11-16 14:37:14
 */
@Getter
@Setter
@TableName("drain_command_dispatch_scheme_car")
public class DrainCommandDispatchSchemeCar implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Long cmKid;

    /**
     * 预案id
     */
    private Long planId;

    /**
     * 应急车辆的id
     */
    private Long mnCarId;
    @TableField(value = "cm_creator",fill = FieldFill.INSERT)
    private String cmCreator;
    @TableField(value = "cm_modifier",fill = FieldFill.UPDATE)
    private String cmModifier;

    private String cmOrgflag;

    private String cmRegflag;

    private Long cmTenantid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_addtime",fill = FieldFill.INSERT)
    private Date cmAddtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_uptime", fill = FieldFill.UPDATE)
    private Date cmUptime;

    private Long cmVersion;
    private Boolean cmUsable;

    /**
     * 预警等级 1.Ⅰ级,2.Ⅱ级,3.Ⅲ级,4.Ⅳ级
     */
    private String level;

    private Long schemeId;

    /**
     * 防汛车辆名称
     */
    private String carName;

    /**
     * 车牌号
     */
    @TableField(exist = false)
    private String carPlate;

    /**
     * 责任人
     */
    @TableField(exist = false)
    private String responser;

    /**
     * 位置
     */
    @TableField(exist = false)
    private String address;

    /**
     * 经度
     */
    @TableField(exist = false)
    private BigDecimal lgtd;

    /**
     * 纬度
     */
    @TableField(exist = false)
    private BigDecimal lttd;

    /**
     * 手机号
     */
    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    private Boolean assignedFlag;
}
